package com.flag.liutao.modules.role.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.flag.liutao.modules.flag.vo.UnitVo;
import com.flag.liutao.modules.student.vo.GradeVo;
import com.flag.liutao.modules.user.vo.UserQueryVo;
import com.flag.liutao.modules.user.vo.UserVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("任职VO")
public class UserRoleVo {
    @ApiModelProperty("用户信息")
    private UserVo user;
    @ApiModelProperty("角色信息")
    private RoleVo role;
    @ApiModelProperty("分队信息")
    private UnitVo unit;
    @ApiModelProperty("年级信息")
    private GradeVo grade;
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GTM+8"
    )
    @ApiModelProperty("授衔时间")
    private Date takeTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GTM+8"
    )
    @ApiModelProperty("卸衔时间")
    private Date retireTime;

}
